<template>
  <view class="notFound_outer">
    <view class="notFound_inner">
      <view class="notFound_inner_title">请使用微信浏览器打开</view>
      <u-empty
        mode="permission"
        icon="https://cdn.uviewui.com/uview/empty/permission.png"
      >
      </u-empty>
    </view>
  </view>
</template>

<script>
export default {
  onShow() {
    if (this.isWechat()) {
      uni.navigateTo({
        url: "/pages/information/index",
      });
    }
  },
  methods: {
    isWechat() {
      var ua = window.navigator.userAgent.toLowerCase();
      if (ua.match(/micromessenger/i) == "micromessenger") {
        return true;
      } else {
        return false;
      }
    },
  },
};
</script>

<style lang="scss" scoped>
.notFound_outer {
  width: 100vw;
  height: 100vh;

  .notFound_inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 200rpx;
    .notFound_inner_title {
      font-size: 60rpx;
      font-weight: 600;
    }
  }
}
</style>
